package br.ufrj.dcc.smarthotel.controls;

import br.ufrj.dcc.smarthotel.activities.DashboardActivity;
import br.ufrj.dcc.smarthotel.entities.Session;

public class DashboardControl extends Control {
	DashboardActivity activity;
	
	public DashboardControl(DashboardActivity activity) {
		this.activity = activity;
	}

	public void getSessionInfo() {
		Session session = (Session) this.retrieve(this.activity.getSessionLocation(), Session.class);
		
		LoggedUserSession.getInstance().setSession(session);
		
		this.activity.setDashboardSessionInfo(session);
	}
}
